package com.tuananh.radnom.model;

import java.io.Serializable;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


public class NeGroup implements Serializable{
	String name;
	
	ArrayList<NetElement> NeList = new ArrayList<NetElement>();
	
	@XmlElement(name="NeList")
	@XmlJavaTypeAdapter(GroupXmlAdapter.class)
	public ArrayList<NetElement> getNeList() {
		return NeList;
	}

	public void setNeList(ArrayList<NetElement> neList) {
		NeList = neList;
	}

	@XmlAttribute
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public boolean validate(NeGroup newGroup){
		if (name.equals(newGroup.getName())) return false;
		return true;
	}
}
